/*
@author: tian-yan-tian-ge
@file: 2023.11.10.go
@time: 2023/11/10 17:30
*/
package main

import "fmt"

var username string
var passwd string

func main() {
	fmt.Println("请输入用户名和密码:")
	fmt.Scan(&username,&passwd)
	if username == "root" && passwd == "123456"{
		fmt.Printf("登录成功")
	}else {
		fmt.Printf("登录失败")
	}
	if passwd != "123456" {
		fmt.Printf("密码错误")
	}else if username != "root" {
		fmt.Printf("用户名错误")
	}
}
